import { SysMenuDao } from "@/common/dao/sys_menu.dao";
import { SysMenu } from "@/common/domain/sys_menu";

export const SysMenuService = {
  list: () => SysMenuDao.list(),
  listByUserId: (user_id: number) => SysMenuDao.listByUserId(user_id),
  getById: (menu_id: number) => SysMenuDao.getById(menu_id),
  create: (data: Partial<SysMenu>) => SysMenuDao.create(data),
  update: (menu_id: number, data: Partial<SysMenu>) => SysMenuDao.update(menu_id, data),
  delete: (menu_id: number) => SysMenuDao.delete(menu_id),
}; 